package com.scgl.process.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scgl.process.mapper.ScglLeadMapper;
import com.scgl.process.domain.ScglLead;
import com.scgl.process.service.IScglLeadService;

/**
 * 领料信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-01
 */
@Service
public class ScglLeadServiceImpl implements IScglLeadService 
{
    @Autowired
    private ScglLeadMapper scglLeadMapper;

    /**
     * 查询领料信息
     * 
     * @param serial 领料信息主键
     * @return 领料信息
     */
    @Override
    public ScglLead selectScglLeadBySerial(Long serial)
    {
        return scglLeadMapper.selectScglLeadBySerial(serial);
    }

    /**
     * 查询领料信息列表
     * 
     * @param scglLead 领料信息
     * @return 领料信息
     */
    @Override
    public List<ScglLead> selectScglLeadList(ScglLead scglLead)
    {
        return scglLeadMapper.selectScglLeadList(scglLead);
    }

    /**
     * 新增领料信息
     * 
     * @param scglLead 领料信息
     * @return 结果
     */
    @Override
    public int insertScglLead(ScglLead scglLead)
    {
        return scglLeadMapper.insertScglLead(scglLead);
    }

    /**
     * 修改领料信息
     * 
     * @param scglLead 领料信息
     * @return 结果
     */
    @Override
    public int updateScglLead(ScglLead scglLead)
    {
        return scglLeadMapper.updateScglLead(scglLead);
    }

    /**
     * 批量删除领料信息
     * 
     * @param serials 需要删除的领料信息主键
     * @return 结果
     */
    @Override
    public int deleteScglLeadBySerials(Long[] serials)
    {
        return scglLeadMapper.deleteScglLeadBySerials(serials);
    }

    /**
     * 删除领料信息信息
     * 
     * @param serial 领料信息主键
     * @return 结果
     */
    @Override
    public int deleteScglLeadBySerial(Long serial)
    {
        return scglLeadMapper.deleteScglLeadBySerial(serial);
    }
}
